package com.yz.common.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 钰杰
 * @className ResultCode
 * @description VX:FengYJ996
 * @date 2019/12/58:58
 */
@Data
public class ResultCode implements Serializable {
    /**
     * 成功码：2000
     */
    public static final int SUCCESS_CODE = 0;

    /**
     * 登陆错误码：5100
     */
    public static final int ERROR_LOGIN_CODE = 5100;
    public static final int ERROR_NO_TOKEN_CODE = 5101;
    public static final int ERROR_NO_AUTHORIZATION_CODE = 5102;
    public static final int ERROR_TOKEN_EXCEEDED_CODE = 5103;

    /**
     * dba错误码：5200
     */
    public static final int ERROR_DBA_CODE = 5200;
    public static final int ERROR_DBA_GET_LINKMANAGE_CODE = 5201;
    public static final int ERROR_DBA_BAD_CONNECTION_CODE = 5202;
    public static final int ERROR_DBA_REDIS_DATASOUTCE_INVALID_CODE = 5203;
    public static final int ERROR_DBA_SHOW_DATABASES_CODE = 5204;
    public static final int ERROR_DBA_SHOW_TABLES_CODE = 5205;
    public static final int ERROR_DBA_SHOW_FILEDS_CODE = 5206;
    public static final int ERROR_DBA_COMMIT_MISSION_CODE = 5207;
    public static final int ERROR_DBA_COMMIT_MISSION_INVALID_CODE = 5208;
    public static final int ERROR_DBA_SHOW_MISSION_CODE = 5209;
    public static final int ERROR_DBA_NAMING_REPETITION_CODE = 5210;
    public static final int ERROR_DBA_FAIL_MIGRATION_CODE = 5211;

    /**
     * admin错误码：5300
     */
    public static final int ERROR_ADMIN_CODE = 5300;
    public static final int ERROR_ADMIN_EXAMINE_MISSION_CODE = 5301;

    /**
     * BI错误码：5400
     */
    public static final int ERROR_BI_CODE = 5400;


}
